package com.gmadmin.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.gmadmin.common.BaseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * 数据字典
 *
 * @author zl.sir
 * @since 2022-06-08
 */
@TableName("sys_dict")
public class SysDict extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 8252431218351022738L;
    /**
     * ID
     */
    @TableId(value="dict_id",type = IdType.AUTO)
    private Long id;

    /**
     * 字典名称
     */
    @TableField("name")
    private String name;

    /**
     * 描述
     */
    @TableField("description")
    private String description;


    /**
     * 状态
     */
    @TableField("enabled")
    private Boolean enabled;


    /**
     * 字典详情对应
     */
    @TableField(exist = false)
    private List<SysDictDetail> dictDetails;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }


    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public List<SysDictDetail> getDictDetails() {
        return dictDetails;
    }

    public void setDictDetails(List<SysDictDetail> dictDetails) {
        this.dictDetails = dictDetails;
    }
}
